package com.yc.pre.mapper.primary;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.pre.entity.bean.PreRolePermission;
import com.yc.pre.entity.bo.PermissionRoleBo;

import java.util.List;

/**
 * @ClassName PreRolePermissionMapper
 * @Description 角色权限关联mapper
 * @Date 2021/02/08 18:15:13
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
public interface PreRolePermissionMapper extends BaseMapper<PreRolePermission> {

    /**
     * 获取所有权限对应的角色
     */
    List<PermissionRoleBo> findAllPermissionWithRole();

}
